package com.weitu.train.certificate.service;

import com.weitu.train.certificate.entity.Certificate;
import com.weitu.train.certificate.entity.PersonFile;

import java.util.List;
import java.util.Map;

public interface CertificateService {

    Certificate selectById(String id);

    int deleteById(String id);

    int updateByIdSelective(Certificate record);

    int updateById(Map<String,Object> record);

    int insert(Map<String,Object> record);

    int insertSelective(Certificate record);

    boolean insertCertificate(Map<String, Object> map);
    boolean updateCertificate(Map<String,Object> map);
    /**
     * 证书管理模块列表
     * @param map
     * @return
     */
    List<Certificate> selectAllCertificate(Map<String,Object> map);

    /**
     * 证书管理模块列表总数
     * @param map
     * @return
     */
    int selectAllCertificateCount(Map<String,Object> map);

    List<Map<String,Object>> selectRecords(String certificateId);

    List<PersonFile> selectFiles(Map<String,Object> map);
    int selectFilesCount(Map<String,Object> map);

    List<Map<String,Object>> selectRecordsByUserId(String userId);
    List<Map<String,Object>> selectCertByUserId(String userId);
}